<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>GimpColorManaged: GIMP 3 Color Library Reference Manual</title>
<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot">
<link rel="home" href="index.html" title="GIMP 3 Color Library Reference Manual">
<link rel="up" href="pt01.html" title="Part I. GIMP Color Library">
<link rel="prev" href="libgimpcolor3-GimpColorSpace.html" title="GimpColorSpace">
<link rel="next" href="GimpColorProfile.html" title="GimpColorProfile">
<meta name="generator" content="GTK-Doc V1.33.0 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
<td width="100%" align="left" class="shortcuts">
<a href="#" class="shortcut">Top</a><span id="nav_description">  <span class="dim">|</span> 
                  <a href="#GimpColorManaged.description" class="shortcut">Description</a></span><span id="nav_hierarchy">  <span class="dim">|</span> 
                  <a href="#GimpColorManaged.object-hierarchy" class="shortcut">Object Hierarchy</a></span><span id="nav_prerequisites">  <span class="dim">|</span> 
                  <a href="#GimpColorManaged.prerequisites" class="shortcut">Prerequisites</a></span><span id="nav_signals">  <span class="dim">|</span> 
                  <a href="#GimpColorManaged.signals" class="shortcut">Signals</a></span>
</td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
<td><a accesskey="u" href="pt01.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
<td><a accesskey="p" href="libgimpcolor3-GimpColorSpace.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="GimpColorProfile.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
</tr></table>
<div class="refentry">
<a name="GimpColorManaged"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="GimpColorManaged.top_of_page"></a>GimpColorManaged</span></h2>
<p>GimpColorManaged — An interface dealing with color profiles.</p>
</td>
<td class="gallery_image" valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1">
<a name="GimpColorManaged.functions"></a><h2>Functions</h2>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="functions_proto_type">
<col class="functions_proto_name">
</colgroup>
<tbody>
<tr>
<td class="function_type">const <span class="returnvalue">guint8</span> *
</td>
<td class="function_name">
<a class="link" href="GimpColorManaged.html#gimp-color-managed-get-icc-profile" title="gimp_color_managed_get_icc_profile ()">gimp_color_managed_get_icc_profile</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="GimpColorProfile.html" title="GimpColorProfile"><span class="returnvalue">GimpColorProfile</span></a> *
</td>
<td class="function_name">
<a class="link" href="GimpColorManaged.html#gimp-color-managed-get-color-profile" title="gimp_color_managed_get_color_profile ()">gimp_color_managed_get_color_profile</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GimpColorManaged.html#gimp-color-managed-profile-changed" title="gimp_color_managed_profile_changed ()">gimp_color_managed_profile_changed</a> <span class="c_punctuation">()</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="GimpColorManaged.signals"></a><h2>Signals</h2>
<div class="informaltable"><table class="informaltable" border="0">
<colgroup>
<col width="150px" class="signal_proto_type">
<col width="300px" class="signal_proto_name">
<col width="200px" class="signal_proto_flags">
</colgroup>
<tbody><tr>
<td class="signal_type"><span class="returnvalue">void</span></td>
<td class="signal_name"><a class="link" href="GimpColorManaged.html#GimpColorManaged-profile-changed" title="The “profile-changed” signal">profile-changed</a></td>
<td class="signal_flags">Run First</td>
</tr></tbody>
</table></div>
</div>
<div class="refsect1">
<a name="GimpColorManaged.other"></a><h2>Types and Values</h2>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="other_proto_type">
<col class="other_proto_name">
</colgroup>
<tbody>
<tr>
<td class="datatype_keyword"> </td>
<td class="function_name"><a class="link" href="GimpColorManaged.html#GimpColorManaged-struct" title="GimpColorManaged">GimpColorManaged</a></td>
</tr>
<tr>
<td class="datatype_keyword">struct</td>
<td class="function_name"><a class="link" href="GimpColorManaged.html#GimpColorManagedInterface" title="struct GimpColorManagedInterface">GimpColorManagedInterface</a></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="GimpColorManaged.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="screen">    <a href="/local/head/share/gtk-doc/html/gobject/GTypeModule.html">GInterface</a>
    <span class="lineart">╰──</span> GimpColorManaged
</pre>
</div>
<div class="refsect1">
<a name="GimpColorManaged.prerequisites"></a><h2>Prerequisites</h2>
<p>
GimpColorManaged requires
 GObject.</p>
</div>
<div class="refsect1">
<a name="GimpColorManaged.description"></a><h2>Description</h2>
<p>An interface dealing with color profiles.</p>
</div>
<div class="refsect1">
<a name="GimpColorManaged.functions_details"></a><h2>Functions</h2>
<div class="refsect2">
<a name="gimp-color-managed-get-icc-profile"></a><h3>gimp_color_managed_get_icc_profile ()</h3>
<pre class="programlisting">const <span class="returnvalue">guint8</span> *
gimp_color_managed_get_icc_profile (<em class="parameter"><code><a class="link" href="GimpColorManaged.html" title="GimpColorManaged"><span class="type">GimpColorManaged</span></a> *managed</code></em>,
                                    <em class="parameter"><code><span class="type">gsize</span> *len</code></em>);</pre>
<div class="refsect3">
<a name="gimp-color-managed-get-icc-profile.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>managed</p></td>
<td class="parameter_description"><p>an object the implements the <a class="link" href="GimpColorManaged.html" title="GimpColorManaged"><span class="type">GimpColorManaged</span></a> interface</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>len</p></td>
<td class="parameter_description"><p>return location for the number of bytes in the profile data. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gimp-color-managed-get-icc-profile.returns"></a><h4>Returns</h4>
<p>A blob of data that represents an ICC color
profile. </p>
<p><span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=len]</span></p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-4.html#api-index-2.4">2.4</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gimp-color-managed-get-color-profile"></a><h3>gimp_color_managed_get_color_profile ()</h3>
<pre class="programlisting"><a class="link" href="GimpColorProfile.html" title="GimpColorProfile"><span class="returnvalue">GimpColorProfile</span></a> *
gimp_color_managed_get_color_profile (<em class="parameter"><code><a class="link" href="GimpColorManaged.html" title="GimpColorManaged"><span class="type">GimpColorManaged</span></a> *managed</code></em>);</pre>
<p>This function always returns a <a class="link" href="GimpColorProfile.html" title="GimpColorProfile"><span class="type">GimpColorProfile</span></a> and falls back to
<a class="link" href="GimpColorProfile.html#gimp-color-profile-new-rgb-srgb" title="gimp_color_profile_new_rgb_srgb ()"><code class="function">gimp_color_profile_new_rgb_srgb()</code></a> if the method is not implemented.</p>
<div class="refsect3">
<a name="gimp-color-managed-get-color-profile.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>managed</p></td>
<td class="parameter_description"><p>an object the implements the <a class="link" href="GimpColorManaged.html" title="GimpColorManaged"><span class="type">GimpColorManaged</span></a> interface</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gimp-color-managed-get-color-profile.returns"></a><h4>Returns</h4>
<p>The <em class="parameter"><code>managed</code></em>
's <a class="link" href="GimpColorProfile.html" title="GimpColorProfile"><span class="type">GimpColorProfile</span></a>. </p>
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-10.html#api-index-2.10">2.10</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gimp-color-managed-profile-changed"></a><h3>gimp_color_managed_profile_changed ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
gimp_color_managed_profile_changed (<em class="parameter"><code><a class="link" href="GimpColorManaged.html" title="GimpColorManaged"><span class="type">GimpColorManaged</span></a> *managed</code></em>);</pre>
<p>Emits the "profile-changed" signal.</p>
<div class="refsect3">
<a name="gimp-color-managed-profile-changed.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>managed</p></td>
<td class="parameter_description"><p>an object the implements the <a class="link" href="GimpColorManaged.html" title="GimpColorManaged"><span class="type">GimpColorManaged</span></a> interface</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<p class="since">Since: <a class="link" href="api-index-2-4.html#api-index-2.4">2.4</a></p>
</div>
</div>
<div class="refsect1">
<a name="GimpColorManaged.other_details"></a><h2>Types and Values</h2>
<div class="refsect2">
<a name="GimpColorManaged-struct"></a><h3>GimpColorManaged</h3>
<pre class="programlisting">typedef struct _GimpColorManaged GimpColorManaged;</pre>
</div>
<hr>
<div class="refsect2">
<a name="GimpColorManagedInterface"></a><h3>struct GimpColorManagedInterface</h3>
<pre class="programlisting">struct GimpColorManagedInterface {
  GTypeInterface  base_iface;

  /**
   * GimpColorManagedInterface::get_icc_profile:
   * @managed: an object the implements the #GimpColorManaged interface
   * @len: (out): return location for the number of bytes in the profile data
   *
   * Returns: (array length=len): A blob of data that represents an ICC color
   *                              profile.
   *
   * Since: 2.4
   */
  const guint8     * (* get_icc_profile)   (GimpColorManaged *managed,
                                            gsize            *len);

  /*  signals  */
  void               (* profile_changed)   (GimpColorManaged *managed);

  /*  virtual functions  */
  GimpColorProfile * (* get_color_profile) (GimpColorManaged *managed);
};
</pre>
<div class="refsect3">
<a name="GimpColorManagedInterface.members"></a><h4>Members</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="300px" class="struct_members_name">
<col class="struct_members_description">
<col width="200px" class="struct_members_annotations">
</colgroup>
<tbody>
<tr>
<td class="struct_member_name"><p><span class="type">GTypeInterface</span> <em class="structfield"><code><a name="GimpColorManagedInterface.base-iface"></a>base_iface</code></em>;</p></td>
<td class="struct_member_description"><p>The parent interface</p></td>
<td class="struct_member_annotations"> </td>
</tr>
<tr>
<td class="struct_member_name"><p><em class="structfield"><code><a name="GimpColorManagedInterface.get-icc-profile"></a>get_icc_profile</code></em> ()</p></td>
<td class="struct_member_description"><p>Returns the ICC profile of the pixels managed by
the object</p></td>
<td class="struct_member_annotations"> </td>
</tr>
<tr>
<td class="struct_member_name"><p><em class="structfield"><code><a name="GimpColorManagedInterface.profile-changed"></a>profile_changed</code></em> ()</p></td>
<td class="struct_member_description"><p>This signal is emitted when the object's color profile
has changed</p></td>
<td class="struct_member_annotations"> </td>
</tr>
<tr>
<td class="struct_member_name"><p><em class="structfield"><code><a name="GimpColorManagedInterface.get-color-profile"></a>get_color_profile</code></em> ()</p></td>
<td class="struct_member_description"><p>Returns the <a class="link" href="GimpColorProfile.html" title="GimpColorProfile"><span class="type">GimpColorProfile</span></a> of the pixels managed
by the object</p></td>
<td class="struct_member_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
</div>
<div class="refsect1">
<a name="GimpColorManaged.signal-details"></a><h2>Signal Details</h2>
<div class="refsect2">
<a name="GimpColorManaged-profile-changed"></a><h3>The <code class="literal">“profile-changed”</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
user_function (<a class="link" href="GimpColorManaged.html" title="GimpColorManaged"><span class="type">GimpColorManaged</span></a> *gimpcolormanaged,
               <span class="type">gpointer</span>          user_data)</pre>
<p>Flags: Run First</p>
</div>
</div>
</div>
<div class="footer">
<hr>Generated by GTK-Doc V1.33.0</div>
</body>
</html>